package com.cetccloud.ap.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @ClassName ProxyConfig
 * @Description TODO
 * @Author superz
 * @Date 2021/4/23 18:29
 * @Version 1.0
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "proxy")
public class ProxyConfig {

    private boolean mock;

    private Http http;

    private File file;

    private Kafka kafka;

    @Data
    public static class Http {
        private List<String> whitelist;
    }

    @Data
    public static class File {
        private String caiji;
    }

    @Data
    public static class Kafka {
        private List<String> topicList;

        private String prefix;
    }
}
